package com.example.accountprovider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.accountprovider.domain.Account;
import com.example.accountprovider.mapper.AccountMapper;
import com.example.accountprovider.service.IAccountService;
import org.springframework.stereotype.Service;

/**
 * @author Kong
 * @date 2021-11-10 15:36
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements IAccountService {
    @Override
    public int decreaseAccount(Integer userId, double balance) {
        return baseMapper.decreaseAccount(userId,balance);
    }
}
